package com.idp.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.idp.demo.dto.GoodsCategoryDto;
import com.idp.demo.dto.GoodsCategorySearchDto;
import com.idp.demo.entity.GoodsCategoryEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 商品类别Mapper
 * @author： King
 */
@Mapper
public interface GoodsCategoryMapper extends BaseMapper<GoodsCategoryEntity> {

    /**
     * 条件查询
     * @param goodsCategorySearchDto
     * @return
     */
	List<GoodsCategoryDto> getList(GoodsCategorySearchDto goodsCategorySearchDto);

    /**
     * 通过id查询
     * @param id
     * @return
     */
	GoodsCategoryDto getById(String id);

}
